package com.gy.common.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 自定义异常 用于提示用户操作错误
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
public final class OptionalException extends RuntimeException {
    private final Integer code;
    private final String msg;
}
